﻿using DHQGHN.DAL.DAO.Admin;
using DHQGHN.DAL.Models.Admin;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DHQGHN.DAL.BO.Admin
{
    public class GroupNhomCoBanBO :BaseBO
    {
        private GroupNhomCoBanDAO _sqlDAO; 
        public GroupNhomCoBanBO()
        {
            _sqlDAO = new GroupNhomCoBanDAO(Common.ConnectionUtil.DHQG_ADMIN_CONNECTION_STRING, DEFAULT_MAPPER_TYPE);
        }
        public List<GroupNhomCoBan> GetByGroupId(int groupId)
        {
            try
            {
                return _sqlDAO.GetByGroupId(groupId);
            }
            catch
            {
                throw;
            }
        }

        public bool Save(List<GroupNhomCoBan> data)
        {
            try
            {
                return _sqlDAO.Save(data);
            }
            catch
            {
                throw;
            }
        }

    }
}
